package com.ruoyi.mall.mapper;

import java.util.List;
import com.ruoyi.mall.entity.MallMembers;
import org.springframework.stereotype.Repository;

/**
 * mallMapper接口
 * 
 * @author ruoyi
 * @date 2020-05-14
 */
@Repository
public interface MallMembersMapper 
{
    /**
     * 查询mall
     * 
     * @param membersId mallID
     * @return mall
     */
    public MallMembers selectMallMembersById(Long membersId);
    /**
     * 根据手机号查询mall
     *
     * @param  phone
     * @return mall
     */
    public MallMembers selectMallMembersByPhone(String phone);

    /**
     * 查询mall列表
     * 
     * @param mallMembers mall
     * @return mall集合
     */
    public List<MallMembers> selectMallMembersList(MallMembers mallMembers);

    /**
     * 新增mall
     * 
     * @param mallMembers mall
     * @return 结果
     */
    public int insertMallMembers(MallMembers mallMembers);

    /**
     * 修改mall
     * 
     * @param mallMembers mall
     * @return 结果
     */
    public int updateMallMembers(MallMembers mallMembers);

    /**
     * 删除mall
     * 
     * @param membersId mallID
     * @return 结果
     */
    public int deleteMallMembersById(Long membersId);

    /**
     * 批量删除mall
     * 
     * @param membersIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteMallMembersByIds(String[] membersIds);
}
